Skip to content

add test coverage for cross-folder list scenarios#1146

Merged
labkey-chrisj merged 2 commits into
developfrom
fb_crossfolderListTest
Jun 27, 2022
Merged

add test coverage for cross-folder list scenarios#1146
labkey-chrisj merged 2 commits into
developfrom
fb_crossfolderListTest

Conversation

@labkey-chrisj
Copy link
Copy Markdown
Contributor

Rationale

This adds some test coverage for list behavior in cross-container scenarios

Related Pull Requests

n/a

Changes

adds a new test
updates LabkeyErrorPage to wait for error heading to be present

Copy link
Copy Markdown
Contributor

@labkey-nicka labkey-nicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good. Just a few minor improvements. Glad to have a test we add additional coverage to as we continue to build out this feature set.



@Category({})
public class CrossfolderListTest extends BaseWebDriverTest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: To be consistent with our other "cross-folder" tests I would change this test class/file/project name to CrossFolderListTest.

import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.labkey.data.xml.queryCustomView.FilterType;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Unused import.

import static org.junit.Assert.assertNotNull;


@Category({})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make this @Category align with the ListTest. @labkey-tchad would have a better idea of exactly what to set it to. Something like:

@Category({Daily.class, Data.class, Hosting.class})

new HashSet(bottomStrings), new HashSet(subfolderPage.getGrid().getColumnDataAsText("String Column")));
}

private ListDefinition makeListDef(String listName, List<FieldDefinition> listColumns)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We don't tend to use the verb make in function/method names. I would recommend renaming to createListDef or getListDef.

@labkey-chrisj labkey-chrisj merged commit 35c0611 into develop Jun 27, 2022
@labkey-chrisj labkey-chrisj deleted the fb_crossfolderListTest branch June 27, 2022 19:31
DariaBod added a commit that referenced this pull request May 13, 2026
#### Rationale
Interactions with icon elements on the page to catch GitHub Issue 1146.

#### Related Pull Requests
- LabKey/labkey-ui-components#1999
- LabKey/labkey-ui-premium#950
- #2984
- LabKey/platform#7653
- LabKey/limsModules#2185

#### Changes
- <!-- list of descriptions of changes that are worth noting (replace
this comment) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants